//package com.hwsc.pay.mq;
//import com.ruoyi.common.config.RabbitMqConfig;
//import org.springframework.amqp.rabbit.core.RabbitTemplate;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Service;
//
//@Service
//public class Producer {
//    private final RabbitTemplate rabbitTemplate;
//
//    public Producer(RabbitTemplate rabbitTemplate) {
//        this.rabbitTemplate = rabbitTemplate;
//    }
//
////    @Scheduled(fixedDelay = 1000)
////    public void sendMessage() {
////        String message = "Hello, RabbitMQ!";
////        rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_NAME, RabbitMqConfig.ROUTING_KEY, message);
////        System.out.println("Sent message: " + message);
////    }
//}